package com.wxtl.entity;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.apache.struts2.json.annotations.JSON;

/**
 * Customer entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "customer", catalog = "upweb")
public class Customer implements java.io.Serializable {

	// Fields

	private Integer custId;
	private String custsn;
	private String authsn;
	private String dogsn;
	private String entName;
	private String industryType;
	private String province;
	private String city;
	private String add;
	private String tel;
	private String linkman;
	private String email;
	private String fax;
	private String website;
	private String bizScope;
	private String other;
	private Timestamp lastUptime;
	private Integer state;
	private Integer level;
	private String mac;
	private String os;
	private String ip;
	private String lanip;
	private Integer port;

	// Constructors

	/** default constructor */
	public Customer() {
	}

	/** full constructor */
	public Customer(String custsn, String authsn,
			String entName, String industryType, String province, String city,
			String add, String tel, String linkman, String email, String fax,
			String website, String bizScope, String other,
			Timestamp lastUptime, Integer state, Integer level, String mac,
			String os, String ip, String lanip, Integer port) {
		this.custsn = custsn;
		this.authsn = authsn;
		this.entName = entName;
		this.industryType = industryType;
		this.province = province;
		this.city = city;
		this.add = add;
		this.tel = tel;
		this.linkman = linkman;
		this.email = email;
		this.fax = fax;
		this.website = website;
		this.bizScope = bizScope;
		this.other = other;
		this.lastUptime = lastUptime;
		this.state = state;
		this.level = level;
		this.mac = mac;
		this.os = os;
		this.ip = ip;
		this.lanip = lanip;
		this.port = port;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "custId", unique = true, nullable = false)
	public Integer getCustId() {
		return this.custId;
	}

	public void setCustId(Integer custId) {
		this.custId = custId;
	}

	@Column(name = "custsn", length = 20)
	public String getCustsn() {
		return this.custsn;
	}

	public void setCustsn(String custsn) {
		this.custsn = custsn;
	}

	@Column(name = "authsn", length = 20)
	public String getAuthsn() {
		return this.authsn;
	}

	public void setAuthsn(String authsn) {
		this.authsn = authsn;
	}

	@Column(name = "entName", length = 100)
	public String getEntName() {
		return this.entName;
	}

	public void setEntName(String entName) {
		this.entName = entName;
	}

	@Column(name = "industryType", length = 100)
	public String getIndustryType() {
		return this.industryType;
	}

	public void setIndustryType(String industryType) {
		this.industryType = industryType;
	}

	@Column(name = "province", length = 10)
	public String getProvince() {
		return this.province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	@Column(name = "city", length = 10)
	public String getCity() {
		return this.city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	@Column(name = "addr", length = 300)
	public String getAdd() {
		return this.add;
	}

	public void setAdd(String add) {
		this.add = add;
	}

	@Column(name = "tel", length = 20)
	public String getTel() {
		return this.tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	@Column(name = "linkman", length = 20)
	public String getLinkman() {
		return this.linkman;
	}

	public void setLinkman(String linkman) {
		this.linkman = linkman;
	}

	@Column(name = "email", length = 100)
	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	@Column(name = "fax", length = 20)
	public String getFax() {
		return this.fax;
	}

	public void setFax(String fax) {
		this.fax = fax;
	}

	@Column(name = "website", length = 200)
	public String getWebsite() {
		return this.website;
	}

	public void setWebsite(String website) {
		this.website = website;
	}

	@Column(name = "bizScope", length = 65535)
	public String getBizScope() {
		return this.bizScope;
	}

	public void setBizScope(String bizScope) {
		this.bizScope = bizScope;
	}

	@Column(name = "other", length = 65535)
	public String getOther() {
		return this.other;
	}

	public void setOther(String other) {
		this.other = other;
	}

	@JSON(format="yyyy-MM-dd HH:mm:ss")
	@Column(name = "lastUptime", length = 19)
	public Timestamp getLastUptime() {
		return this.lastUptime;
	}

	public void setLastUptime(Timestamp lastUptime) {
		this.lastUptime = lastUptime;
	}

	@Column(name = "state")
	public Integer getState() {
		return this.state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	@Column(name = "level")
	public Integer getLevel() {
		return this.level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	@Column(name = "mac", length = 50)
	public String getMac() {
		return this.mac;
	}

	public void setMac(String mac) {
		this.mac = mac;
	}

	@Column(name = "os", length = 100)
	public String getOs() {
		return this.os;
	}

	public void setOs(String os) {
		this.os = os;
	}

	@Column(name = "ip", length = 20)
	public String getIp() {
		return this.ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	@Column(name = "lanip", length = 20)
	public String getLanip() {
		return this.lanip;
	}

	public void setLanip(String lanip) {
		this.lanip = lanip;
	}

	@Column(name = "port")
	public Integer getPort() {
		return this.port;
	}

	public void setPort(Integer port) {
		this.port = port;
	}

	@Column(name = "dogsn", length = 50)
	public String getDogsn() {
		return dogsn;
	}

	public void setDogsn(String dogsn) {
		this.dogsn = dogsn;
	}
	
	

}